package com.account.boot.commons.result;

/**
 *
 */

import java.io.Serializable;

public class BaseResultDO implements Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = -4885678659694136639L;

	private boolean success = true;

	private int resultCode = 0;

	/**
	 * 异常类型 0.业务异常 1.底层系统级异常(db,redis,远程连接有问题,hsf等)
	 */
	private int errorType = 0;

	protected String errorMessage;

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public int getResultCode() {
		return resultCode;
	}

	public void setResultCode(int resultCode) {
		this.resultCode = resultCode;
	}

	public String getErrorMesssage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public int getErrorType() {
		return errorType;
	}

	public void setErrorType(int errorType) {
		this.errorType = errorType;
	}
}
